package com.example.demo.modules.es.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Data
@Document(indexName = "ecommerce")
public class Ecommerce {

    @Id
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "商品名称")
    private String name;
}
